<div class="bg-light lter b-b wrapper-md">
  <h1 class="m-n font-thin h3">招徕奖励补贴规则设置</h1>
</div>
<div class="panel panel-default">
  <div class="panel-body">
    <div class="col-lg-2 pull-right">
      <button class="btn btn-info btn-block" ng-click="addPolicy()">添加补贴规则</button>
    </div>
  </div>

  <div class="panel-body">
    <ul class="list-group gutter list-group-lg list-group-sp">
      <li class="list-group-item" ng-repeat="info in policyList">
        <div class="clear">
          <b style="vertical-align: -webkit-baseline-middle;">
            <i class="fa fa-chevron-right"></i> {{info.title}}
            <small ng-if="info.status==1">(发布时间:{{info.release_time}})</small>
          </b>
          <span class="pull-right" >
            <button type="button" class="btn btn-md" ng-click="updateStatus(info)"
             ng-class="{'btn-success': info.status==0, 'btn-warning': info.status==1}">{{info.status==0?'发布':'撤销'}}</button>
            <button type="button" ng-if="info.status==1" class="btn btn-primary btn-md" ng-click="changeStatus(info)">{{info.stop_status==0?'停用':'开启'}}</button>
            <button type="button" ng-if="info.status==0" class="btn btn-primary btn-md" ng-click="edit(info)">编辑</button>
            <button type="button" ng-if="info.status==0" class="btn btn-danger btn-md" ng-click="delete(info.code, $index)">删除</button>
          </span>
        </div>
      </li>
    </ul>
  </div>

</div>
